Task 1 IF some test THEN Task 2 ELSE Task 3 END IF
Consider the following problem:
You want a program that keeps the balance of your checking account. You will run the program each time you make a transaction. Transactions are of two types:
- A deposit.
- A check.
The deposit amount will be added to the balance. The check amount will be subtracted from the balance.
Say that you have analyzed the problem and have decided on these tasks:
A plan for the program is below. Depending on the transaction type, one of two subtasks is chosen.
____________ ____________ IF transaction is a deposit THEN ____________ ELSE ____________ END IF ____________ END
Fill in the blanks in the above plan for the program from the list of tasks.